package com.itheima.d02_exception_runtime;

/**
 * 目标：了解运行时异常的特点
 *           Throwable
 *    Error                 Exception
 *            RuntimeException         other
 */
public class Test {

    public static void main(String[] args) {
        //需求：将字符串数值数据转换成数值类型
        //1.数据格式异常：NumberFormatException
        //String  numStr = "123a";
        //Integer num = Integer.valueOf(numStr);
        //System.out.println( num );

        //2.数组下标越界异常：ArrayIndexOutOfBoundsException

        //3.数学运算异常：ArithmeticException

        //4.空指针异常：NullPointerException

        //5.类型转换异常：ClassCastException
    }

}



